import re

import requests

url = 'https://pic.netbian.com/4kmeinv/'

res = requests.get(url)
res = res.content.decode('gbk')
# print(res)
img_urls = re.findall(
    '<li><a href=".*?" target="_blank"><img src="(.*?)" alt=".*?" /><b>.*?</b></a></li>',
    res)
# print(img_urls)
i = 1
for img_url in img_urls:
    url = "https://pic.netbian.com" + img_url
    img_res = requests.get(url)
    with open(f'../datas/美女/{i}.jpg', 'wb') as f:
        f.write(img_res.content)
    i += 1
